/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.phone.entity.SalesRecords;
import com.jeesite.modules.phone.dao.SalesRecordsDao;

/**
 * 销售记录Service
 * @author lzw
 * @version 2019-04-03
 */
@Service
@Transactional(readOnly=true)
public class SalesRecordsService extends CrudService<SalesRecordsDao, SalesRecords> {
	
	/**
	 * 获取单条数据
	 * @param salesRecords
	 * @return
	 */
	@Override
	public SalesRecords get(SalesRecords salesRecords) {
		return super.get(salesRecords);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param salesRecords
	 * @return
	 */
	@Override
	public Page<SalesRecords> findPage(Page<SalesRecords> page, SalesRecords salesRecords) {
		return super.findPage(page, salesRecords);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param salesRecords
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(SalesRecords salesRecords) {
		super.save(salesRecords);
	}
	
	/**
	 * 更新状态
	 * @param salesRecords
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(SalesRecords salesRecords) {
		super.updateStatus(salesRecords);
	}
	
	/**
	 * 删除数据
	 * @param salesRecords
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(SalesRecords salesRecords) {
		super.delete(salesRecords);
	}
	
}